
public class Square {
	
	public int col;
	public int row;

	
	public Square(String position)
	{
		assert(position.length() == 2);
		
		char cc = position.charAt(0);
		char rc = position.charAt(1);
		
		setSquare(((cc - 'a') +1), Integer.parseInt(String.valueOf(rc)));
	}

	//View as the array
	public Square(int col, int row)
	{
		setSquare(row, col);
	}
	
	public void setSquare(int col, int row)
	{
		assert(col >= 1 && col <= 5);
		assert(row >= 1 && row <= 6);
		this.col = col;
		this.row = row;	
	}
}
